"""
@FileName：1线程类.py
@Author：lmz
@Time：2021/5/20 22:51
"""
from threading import Thread


class MyThread(Thread):
    def run(self):
        for i in range(10):
            print('--child--{}'.format(i))


if __name__ == '__main__':
    mt = MyThread()
    mt.start()
    for i in range(10):
        print("--main--{}".format(i))
